package org.mg.frontend.security;

import org.springframework.security.authentication.encoding.ShaPasswordEncoder;

/**
 * @author MG
 * @since 06-04-2013
 */
public class AuthPasswordEncoder extends ShaPasswordEncoder {

    public AuthPasswordEncoder(int strength) {
        super(strength);
    }

    @Override
    public String encodePassword(String rawPass, Object salt) {
        String password = super.encodePassword(rawPass, salt);
        return salt + password;
    }
}
